package cn.lxsir.uniapp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author wy
 * @since 2023-05-31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Orders implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 订单编号
     */
    private String no;

    /**
     * 名称
     */
    private String name;

    /**
     * 订单时间
     */
    private String time;

    /**
     * 支付状态
     */
    private Integer state;

    /**
     * 订单总价
     */
    private BigDecimal total;

    /**
     * 买家
     */
    private String userName;

    /**
     * 支付时间
     */
    private String paymentTime;

    /**
     * 支付宝交易号
     */
    private String alipayNo;

    /**
     * 退款时间
     */
    private String returnTime;

    /**
     * 买家id
     */
    private Integer userId;
    private Integer goodId;

    @TableField(exist = false)
    private Goods goods;

}
